import http from '@/utils/http'

//封装所有和用户相关api

//用户名和密码登录
export const loginApi = ({ account, password }) => {
  return http({
    url: '/login',
    method: 'post',
    data: {
      account,
      password
    }
  })
}

//猜你喜欢接口
export const getLikeListApi = ({ limit = 4 }) => {
  return http({
    url: '/goods/relevant',
    params: {
      limit
    }
  })
}